//
//  HudFactory.m
//  兼职页面
//
//  Created by kuiyuan liang on 2021/5/24.
//

#import "HudFactory.h"
#import "CommonUtil.h"
#import "BuyRedFlower.h"
#import "AddFriendAlert.h"
#import "rewardMoneyAlert.h"
#import "ReportAlert.h"
#import "GangcaiChangeAlert.h"
#import "ChallengeAlert.h"
#import "GangCaiSelectAlert.h"
#import "GangCaiAddAlert.h"
@implementation HudFactory

+(BaseAlert *)creatHudWithType:(NSString *)hudType{

    if ([hudType isEqualToString:@"BuyRedFlower"]) {
        BuyRedFlower *alert = [[BuyRedFlower alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
        return alert;
    }else if ([hudType isEqualToString:@"AddFriendAlert"]){
        AddFriendAlert *alert = [[AddFriendAlert alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
        return alert;
    }else if ([hudType isEqualToString:@"rewardMoneyAlert"]){
        rewardMoneyAlert *alert = [[rewardMoneyAlert alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
        return alert;
    }else if ([hudType isEqualToString:@"ReportAlert"]){
        ReportAlert *alert = [[ReportAlert alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
        return alert;
    }else if ([hudType isEqualToString:@"GangcaiChangeAlert"]){
        GangcaiChangeAlert *alert = [[GangcaiChangeAlert alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
        return alert;
    }else if ([hudType isEqualToString:@"ChallengeAlert"]){
        ChallengeAlert *alert = [[ChallengeAlert alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
        return alert;
    }else if ([hudType isEqualToString:@"GangCaiSelectAlert"]){
        GangCaiSelectAlert *alert = [[GangCaiSelectAlert alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
        return alert;
    }else if ([hudType isEqualToString:@"GangCaiAddAlert"]){
        GangCaiAddAlert *alert = [[GangCaiAddAlert alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
        return alert;
    }
    
    
    BaseAlert *alert = [[BaseAlert alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    return alert;
}

@end
